package org.twndmv.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.twndmv.bo.Color;

public class VehicleRegistrationDTO implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private long id;
	private String tagNo;
	private String vin;
	private String make;
	private String model;
	private Color color;
	private int year;
	private Date expiration;
	
	private List<PersonDTO> owners;
	
	public VehicleRegistrationDTO() {
		setOwners(new ArrayList<PersonDTO>());
	}
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getTagNo() {
		return tagNo;
	}
	public void setTagNo(String tagNo) {
		this.tagNo = tagNo;
	}
	public String getVin() {
		return vin;
	}
	public void setVin(String vin) {
		this.vin = vin;
	}
	public String getMake() {
		return make;
	}
	public void setMake(String make) {
		this.make = make;
	}
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public Color getColor() {
		return color;
	}
	public void setColor(Color color) {
		this.color = color;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public Date getExpiration() {
		return expiration;
	}
	public void setExpiration(Date expiration) {
		this.expiration = expiration;
	}
	
	public String printSummary() {
		return color.getName() + " " + year + " " + make + " " + model  ;
	}


	public List<PersonDTO> getOwners() {
		return owners;
	}


	public void setOwners(List<PersonDTO> owners) {
		this.owners = owners;
	}
}
